package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 微信公众号表单
 * @author Unicorn
 * @date 2018-03-20 15:56:31
 */
@Data
public class WechatMpForm implements Idable {
	
	private Long id;

	@NotNull(message = "公众号名称不能为空")
	@Length(min = 0,max = 100,message = "公众号名称长度为0~100个字符")
	private String name;
	
	@NotNull(message = "公众号AppId不能为空")
	@Length(min = 0,max = 100,message = "公众号AppId长度为0~100个字符")
	private String appId;
	
	@NotNull(message = "公众号Secret不能为空")
	@Length(min = 0,max = 100,message = "公众号Secret长度为0~100个字符")
	private String secret;
	
	@NotNull(message = "公众号ID不能为空")
	@Length(min = 0,max = 100,message = "公众号ID长度为0~100个字符")
	private String mpId;
	
	@Length(min = 0,max = 200,message = "公众号地址长度为0~200个字符")
	private String mpUrl;
	
	@Length(min = 0,max = 100,message = "开放平台AppId长度为0~100个字符")
	private String openAppId;
	
	@Length(min = 0,max = 100,message = "开放平台Secret长度为0~100个字符")
	private String openSecret;
	

}